Optimal. Leaf size=408 \[ -\frac{\left (b-\sqrt{4 a c+b^2}\right ) \sqrt{\sqrt{4 a c+b^2}+b} \sqrt{1-\frac{2 c x^2}{b-\sqrt{4 a c+b^2}}} \sqrt{1-\frac{2 c x^2}{\sqrt{4 a c+b^2}+b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{4 a c+b^2}+b}}\right ),\frac{\sqrt{4 a c+b^2}+b}{b-\sqrt{4 a c+b^2}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}+\frac{\left (b-\sqrt{4 a c+b^2}\right ) \sqrt{\sqrt{4 a c+b^2}+b} \sqrt{1-\frac{2 c x^2}{b-\sqrt{4 a c+b^2}}} \sqrt{1-\frac{2 c x^2}{\sqrt{4 a c+b^2}+b}} E\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2+4 a c}}}\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}-\frac{\sqrt{a+b x^2-c x^4}}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.331777, antiderivative size = 408, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {1123, 12, 1140, 493, 424, 419} \[ -\frac{\left (b-\sqrt{4 a c+b^2}\right ) \sqrt{\sqrt{4 a c+b^2}+b} \sqrt{1-\frac{2 c x^2}{b-\sqrt{4 a c+b^2}}} \sqrt{1-\frac{2 c x^2}{\sqrt{4 a c+b^2}+b}} F\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2+4 a c}}}\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}+\frac{\left (b-\sqrt{4 a c+b^2}\right ) \sqrt{\sqrt{4 a c+b^2}+b} \sqrt{1-\frac{2 c x^2}{b-\sqrt{4 a c+b^2}}} \sqrt{1-\frac{2 c x^2}{\sqrt{4 a c+b^2}+b}} E\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2+4 a c}}}\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}-\frac{\sqrt{a+b x^2-c x^4}}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1123
Rule 12
Rule 1140
Rule 493
Rule 424
Rule 419
Rubi steps
\begin{align*} \int \frac{1}{x^2 \sqrt{a+b x^2-c x^4}} \, dx &=-\frac{\sqrt{a+b x^2-c x^4}}{a x}-\frac{\int \frac{c x^2}{\sqrt{a+b x^2-c x^4}} \, dx}{a}\\ &=-\frac{\sqrt{a+b x^2-c x^4}}{a x}-\frac{c \int \frac{x^2}{\sqrt{a+b x^2-c x^4}} \, dx}{a}\\ &=-\frac{\sqrt{a+b x^2-c x^4}}{a x}-\frac{\left (c \sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}\right ) \int \frac{x^2}{\sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}} \, dx}{a \sqrt{a+b x^2-c x^4}}\\ &=-\frac{\sqrt{a+b x^2-c x^4}}{a x}-\frac{\left (\left (b-\sqrt{b^2+4 a c}\right ) \sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}\right ) \int \frac{1}{\sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}} \, dx}{2 a \sqrt{a+b x^2-c x^4}}+\frac{\left (\left (b-\sqrt{b^2+4 a c}\right ) \sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}\right ) \int \frac{\sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}}}{\sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}}} \, dx}{2 a \sqrt{a+b x^2-c x^4}}\\ &=-\frac{\sqrt{a+b x^2-c x^4}}{a x}+\frac{\left (b-\sqrt{b^2+4 a c}\right ) \sqrt{b+\sqrt{b^2+4 a c}} \sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}} E\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2+4 a c}}}\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}-\frac{\left (b-\sqrt{b^2+4 a c}\right ) \sqrt{b+\sqrt{b^2+4 a c}} \sqrt{1-\frac{2 c x^2}{b-\sqrt{b^2+4 a c}}} \sqrt{1-\frac{2 c x^2}{b+\sqrt{b^2+4 a c}}} F\left (\sin ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2+4 a c}}}\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )}{2 \sqrt{2} a \sqrt{c} \sqrt{a+b x^2-c x^4}}\\ \end{align*}
Mathematica [C] time = 0.432216, size = 283, normalized size = 0.69 \[ \frac{\frac{i \left (\sqrt{4 a c+b^2}-b\right ) \sqrt{\frac{4 c x^2}{\sqrt{4 a c+b^2}-b}+2} \sqrt{1-\frac{2 c x^2}{\sqrt{4 a c+b^2}+b}} \left (E\left (i \sinh ^{-1}\left (\sqrt{2} \sqrt{-\frac{c}{b+\sqrt{b^2+4 a c}}} x\right )|\frac{b+\sqrt{b^2+4 a c}}{b-\sqrt{b^2+4 a c}}\right )-\text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{2} x \sqrt{-\frac{c}{\sqrt{4 a c+b^2}+b}}\right ),\frac{\sqrt{4 a c+b^2}+b}{b-\sqrt{4 a c+b^2}}\right )\right )}{\sqrt{-\frac{c}{\sqrt{4 a c+b^2}+b}}}-\frac{4 a}{x}-4 b x+4 c x^3}{4 a \sqrt{a+b x^2-c x^4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.225, size = 241, normalized size = 0.6 \begin{align*} -{\frac{1}{ax}\sqrt{-c{x}^{4}+b{x}^{2}+a}}+{\frac{c\sqrt{2}}{2}\sqrt{4-2\,{\frac{ \left ( -b+\sqrt{4\,ac+{b}^{2}} \right ){x}^{2}}{a}}}\sqrt{4+2\,{\frac{ \left ( b+\sqrt{4\,ac+{b}^{2}} \right ){x}^{2}}{a}}} \left ({\it EllipticF} \left ({\frac{x\sqrt{2}}{2}\sqrt{{\frac{1}{a} \left ( -b+\sqrt{4\,ac+{b}^{2}} \right ) }}},{\frac{1}{2}\sqrt{-4-2\,{\frac{b \left ( b+\sqrt{4\,ac+{b}^{2}} \right ) }{ac}}}} \right ) -{\it EllipticE} \left ({\frac{x\sqrt{2}}{2}\sqrt{{\frac{1}{a} \left ( -b+\sqrt{4\,ac+{b}^{2}} \right ) }}},{\frac{1}{2}\sqrt{-4-2\,{\frac{b \left ( b+\sqrt{4\,ac+{b}^{2}} \right ) }{ac}}}} \right ) \right ){\frac{1}{\sqrt{{\frac{1}{a} \left ( -b+\sqrt{4\,ac+{b}^{2}} \right ) }}}}{\frac{1}{\sqrt{-c{x}^{4}+b{x}^{2}+a}}} \left ( b+\sqrt{4\,ac+{b}^{2}} \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-c x^{4} + b x^{2} + a} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{-c x^{4} + b x^{2} + a}}{c x^{6} - b x^{4} - a x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x^{2} \sqrt{a + b x^{2} - c x^{4}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-c x^{4} + b x^{2} + a} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]